package onjava.arrays.jmh;

import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.options.ChainedOptionsBuilder;
import org.openjdk.jmh.runner.options.OptionsBuilder;

/**
 * 排序性能运行
 * 
 * @author Lucky Yang
 */
public class ParallelSortMain {
    public static void main(String[] args) throws Exception {
        ChainedOptionsBuilder opts = new OptionsBuilder().include(ParallelSort.class.getSimpleName());
        new Runner(opts.build()).run();
    }
}

/**
 * Output:
 * Benchmark                   Mode  Cnt     Score      Error  Units
 * ParallelSort.parallelSort  thrpt   10  1673.853 ±  770.267  ops/s
 * ParallelSort.sort          thrpt   10  8830.263 ± 1441.190  ops/s
 */
